﻿

using AutoMapper;
using B.S.Base.Write.API.Application.Command;
using WEBAPI.Damoin;

namespace WEBAPI.API
{
    public class Mapping:Profile
    {
        public Mapping()
        {
            CreateMap<AddAccountCommand, AccountModel>().ReverseMap();
            CreateMap<UpdateAccountCommand, AccountModel>().ReverseMap();
            CreateMap<AddRoleCommand, RoleModel>().ReverseMap();
            CreateMap<UpdateRoleCommand, RoleModel>().ReverseMap();
            CreateMap<AddRoleaccountCommand, UserRoleModel>().ReverseMap();
            CreateMap<AddMenuCommand, MenuModel>().ReverseMap();
            CreateMap<UpdateMenuCommand, MenuModel>().ReverseMap();
            CreateMap<AddApproveCommand, ApproveModel>().ReverseMap();
            CreateMap<UpdateApproveCommand, ApproveModel>().ReverseMap();
        }
    }
}
